package com.th.cash.application

import android.app.Application
import android.os.Handler
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ProcessLifecycleOwner
import com.th.cash.storage.LocalSetting
import com.th.basemodel.log.YYLogUtils
import com.th.basemodel.utils.AppUtil
import com.th.basemodel.utils.CommUtils
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class MyApplication : Application(){

    override fun onCreate() {
        super.onCreate()

        CommUtils.init(this, Handler(), android.os.Process.myTid())

        AppUtil.init(this)

        AppUtil.sessionId = LocalSetting.userSession
        AppUtil.userPhone = LocalSetting.userPhone
    }
}